package com.zsy.test.hashmap;

import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;

/**
 * @author: zsy
 * @date: 2020/11/21 10:27
 */
public class Main {

    public static void main(String[] args) {

        Map<String, Double> hashMap = new HashMap<>();

        hashMap.put("K1", 0.1);
        hashMap.put("K2", 0.2);
        hashMap.put("K3", 0.3);
        hashMap.put("K4", 0.4);

        hashMap.remove("K4");

        Set<String> hashSet = new HashSet<>();
        hashSet.add("K1");
        hashSet.add("K1");

        String s = "0";
        Float valueOf = Float.valueOf("0");
        Float a = 4.0f;
        System.out.println("4.0 / 0 = " + a/0);
        System.out.println("0.0 / 0 = " + valueOf/0);
        /**
         * 非0浮点数除以0得到Infinity
         * 0.0/0， 0.0/0.0， 0/0.0 得到 NAN
         */

    }

}
